// Michael Depuy
// depuym@onid.orst.edu
// CS311-400
// Homework4

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <time.h>
#include <fcntl.h>



struct myar_file{
  char myar_name[16];
  char myar_date[12];
  char myar_uid[6];
  char myar_gid[6];
  char myar_mode[8];
  char myar_size[10];
};

int main(int argc,char **argv){

  int opt,app_fd,arch_fd;
  char *filename;
  char *aopt, *bopt;
  char *fappend;
  char *arch;
  struct myar_file *file;

  if((opt = getopt(argc,argv,"q:x:tvd:Aw")) == 0){
      switch(opt){
      case 'q':
	fappend = argv[2];
	arch = argv[1];
	app_fd = open(fappend, O_APPEND, O_RDWR);
	arch_fd = open(arch, O_APPEND, O_RDWR);

	close(app_fd);
	close(arch_fd);
	break;

      case 'x':
	break;
      case 't':
	arch = optarg;
	arch_fd = open(arch, O_RDONLY);
	
	
	break;
      case 'v':
	break;
      case 'd':
	break;
      case 'A':
	break;
      case 'w':
	break;
      }
    }
  return 0;
    
}
